import request from '@/utils/request'

//添加问卷调查题目
export function tbQuestionnaireRelationAddBatch(data) {
	return request({
		method: 'post',
		url: '/tbQuestionnaireRelation/addBatch',
		data,
	})
}

//删除问卷调查
export function tbQuestionnaireRelationDelete(id) {
	return request({
		method: 'post',
		url: '/tbQuestionnaireRelation/delete',
		data: { id },
	})
}

//修改问卷调查
export function tbQuestionnaireRelationUpdate(data) {
	return request({
		method: 'post',
		url: '/tbQuestionnaireRelation/update',
		data,
	})
}

//获取问卷调查
export function tbQuestionnaireRelationQuery(data) {
	return request({
		method: 'get',
		url: '/tbQuestionnaireRelation/query',
		params: data,
	})
}

//获取问卷的题目
export function tbQuestionnaireRelationQueryQuestionType(id) {
	return request({
		method: 'get',
		url: 'tbQuestionnaireRelation/queryQuestionType',
		params: { questionId: id },
	})
}